package cn.iocoder.yudao.module.album.controller.admin.imgsubject.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotNull;


@Schema(description = "管理后台 - 用户相册新增/修改 Request VO")
@Data
public class ImgSubjectSaveReqVO {

    @Schema(description = "相册ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "9871")
    private Long id;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "22550")
    @NotNull(message = "用户编号不能为空")
    private Long userId;

    @Schema(description = "相册名", example = "赵六")
    private String name;

    @Schema(description = "相册说明", example = "你猜")
    private String remark;

    @Schema(description = "相册图片来源类型（1 单图，  2 多图，  3 视频）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "相册图片来源类型（1 单图，  2 多图，  3 视频）不能为空")
    private Integer type;

    @Schema(description = "多图轮播时间间隔（单位：秒）")
    private Integer carouselInterval;

    @Schema(description = "视频截取时长（单位：秒）")
    private Integer videoDuration;

    @Schema(description = "缩略图URL（支持PNG）", example = "https://www.iocoder.cn")
    private String iconUrl;

    @Schema(description = "图片地址（支持GIF）", example = "https://www.iocoder.cn")
    private String imageUrl;

}